<template>
  <section class="jumbotron">
    <h3 class="jumbotron-heading">Search Github Users</h3>
    <div><input type="text" placeholder="enter the name you search" v-model="m1" />&nbsp;<button @click="handler">Search</button></div>
  </section>
</template>

<script>
export default {
  data() {
    return {
      m1: "",
    };
  },
  methods: {
    handler() {
      if (this.m1.trim() === "") return;
      this.$bus.$emit("bigboss", this.m1);
      this.m1 = "";
    },
  },
};
</script>

<style scoped></style>
